<template>
	<view>
		<view v-if="sharePath">
            <web-view :src="sharePath"></web-view>
        </view>
	</view>
</template>

<script>
    let _this;
	export default {
		data() {
			return {
				sharePath:''
			}
		},
        onLoad(res) {
            _this = this;
            console.log('看江哈斯 --- ',res);
            _this.getPayUrl(res.pathKeySN);
        },
		methods: {
			getPayUrl(UrlSN) {
                _this.$ZcPublic.Server.Post({
                	IsNeedLogin: false,
                	Paras: {
                		Name: 'uni_Insure_Detail',
                		Action: 'Ext_GetPayUrl',
                		Data: {
                			SN:UrlSN
                		}
                	},
                	Callback:function(resjson,scope) {
                		if (resjson.state === 'back') {
                			if (!resjson.success) {
                				uni.showModal({
                					title:'温馨提示',
                					showCancel:false,
                					content:''+resjson.msg
                				})
                				return;
                			}
                            // uni.showModal({
                            // 	title:'数据提示',
                            // 	showCancel:false,
                            // 	content:''+resjson.data.PayURL
                            // })
                            _this.sharePath = resjson.data.PayURL;
                		}
                	},
                	Scope: this
                })
            }
		}
	}
</script>

<style>

</style>
